package com.hsnn.medstgmini.base.std.model;

public enum HospClassify {

	classify1(1, "县级及县以上医疗机构"), classify2(2, "基层医疗机构"), classify3(3, "部队医疗机构"), classify4(
			4, "民营医疗机构");

	private int key;
	private String value;

	private HospClassify(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(int key) {
		for (HospClassify item : HospClassify.values()) {
			if (key == item.key) {
				return item.value;
			}
		}
		return "";
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
